Optimal. Leaf size=176 \[ \frac {e p \log (x)}{d f}-\frac {e p \log \left (d+e x^2\right )}{2 d f}-\frac {\log \left (c \left (d+e x^2\right )^p\right )}{2 f x^2}-\frac {g \log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 f^2}+\frac {g \log \left (c \left (d+e x^2\right )^p\right ) \log \left (\frac {e \left (f+g x^2\right )}{e f-d g}\right )}{2 f^2}+\frac {g p \text {Li}_2\left (-\frac {g \left (d+e x^2\right )}{e f-d g}\right )}{2 f^2}-\frac {g p \text {Li}_2\left (1+\frac {e x^2}{d}\right )}{2 f^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 176, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 11, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.440, Rules used = {2525, 46,
2463, 2442, 36, 29, 31, 2441, 2352, 2440, 2438} \begin {gather*} \frac {g p \text {PolyLog}\left (2,-\frac {g \left (d+e x^2\right )}{e f-d g}\right )}{2 f^2}-\frac {g p \text {PolyLog}\left (2,\frac {e x^2}{d}+1\right )}{2 f^2}-\frac {g \log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 f^2}+\frac {g \log \left (c \left (d+e x^2\right )^p\right ) \log \left (\frac {e \left (f+g x^2\right )}{e f-d g}\right )}{2 f^2}-\frac {\log \left (c \left (d+e x^2\right )^p\right )}{2 f x^2}-\frac {e p \log \left (d+e x^2\right )}{2 d f}+\frac {e p \log (x)}{d f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 46
Rule 2352
Rule 2438
Rule 2440
Rule 2441
Rule 2442
Rule 2463
Rule 2525
Rubi steps
\begin {align*} \int \frac {\log \left (c \left (d+e x^2\right )^p\right )}{x^3 \left (f+g x^2\right )} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{x^2 (f+g x)} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {\log \left (c (d+e x)^p\right )}{f x^2}-\frac {g \log \left (c (d+e x)^p\right )}{f^2 x}+\frac {g^2 \log \left (c (d+e x)^p\right )}{f^2 (f+g x)}\right ) \, dx,x,x^2\right )\\ &=\frac {\text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{x^2} \, dx,x,x^2\right )}{2 f}-\frac {g \text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{x} \, dx,x,x^2\right )}{2 f^2}+\frac {g^2 \text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{f+g x} \, dx,x,x^2\right )}{2 f^2}\\ &=-\frac {\log \left (c \left (d+e x^2\right )^p\right )}{2 f x^2}-\frac {g \log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 f^2}+\frac {g \log \left (c \left (d+e x^2\right )^p\right ) \log \left (\frac {e \left (f+g x^2\right )}{e f-d g}\right )}{2 f^2}+\frac {(e p) \text {Subst}\left (\int \frac {1}{x (d+e x)} \, dx,x,x^2\right )}{2 f}+\frac {(e g p) \text {Subst}\left (\int \frac {\log \left (-\frac {e x}{d}\right )}{d+e x} \, dx,x,x^2\right )}{2 f^2}-\frac {(e g p) \text {Subst}\left (\int \frac {\log \left (\frac {e (f+g x)}{e f-d g}\right )}{d+e x} \, dx,x,x^2\right )}{2 f^2}\\ &=-\frac {\log \left (c \left (d+e x^2\right )^p\right )}{2 f x^2}-\frac {g \log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 f^2}+\frac {g \log \left (c \left (d+e x^2\right )^p\right ) \log \left (\frac {e \left (f+g x^2\right )}{e f-d g}\right )}{2 f^2}-\frac {g p \text {Li}_2\left (1+\frac {e x^2}{d}\right )}{2 f^2}+\frac {(e p) \text {Subst}\left (\int \frac {1}{x} \, dx,x,x^2\right )}{2 d f}-\frac {\left (e^2 p\right ) \text {Subst}\left (\int \frac {1}{d+e x} \, dx,x,x^2\right )}{2 d f}-\frac {(g p) \text {Subst}\left (\int \frac {\log \left (1+\frac {g x}{e f-d g}\right )}{x} \, dx,x,d+e x^2\right )}{2 f^2}\\ &=\frac {e p \log (x)}{d f}-\frac {e p \log \left (d+e x^2\right )}{2 d f}-\frac {\log \left (c \left (d+e x^2\right )^p\right )}{2 f x^2}-\frac {g \log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )}{2 f^2}+\frac {g \log \left (c \left (d+e x^2\right )^p\right ) \log \left (\frac {e \left (f+g x^2\right )}{e f-d g}\right )}{2 f^2}+\frac {g p \text {Li}_2\left (-\frac {g \left (d+e x^2\right )}{e f-d g}\right )}{2 f^2}-\frac {g p \text {Li}_2\left (1+\frac {e x^2}{d}\right )}{2 f^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 147, normalized size = 0.84 \begin {gather*} \frac {\frac {e f p \left (2 \log (x)-\log \left (d+e x^2\right )\right )}{d}-\frac {f \log \left (c \left (d+e x^2\right )^p\right )}{x^2}+g \log \left (c \left (d+e x^2\right )^p\right ) \log \left (\frac {e \left (f+g x^2\right )}{e f-d g}\right )+g p \text {Li}_2\left (\frac {g \left (d+e x^2\right )}{-e f+d g}\right )-g \left (\log \left (-\frac {e x^2}{d}\right ) \log \left (c \left (d+e x^2\right )^p\right )+p \text {Li}_2\left (1+\frac {e x^2}{d}\right )\right )}{2 f^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.45, size = 942, normalized size = 5.35
method | result | size |
risch | \(\text {Expression too large to display}\) | \(942\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.58, size = 187, normalized size = 1.06 \begin {gather*} \frac {1}{2} \, p {\left (\frac {{\left (2 \, \log \left (\frac {x^{2} e}{d} + 1\right ) \log \left (x\right ) + {\rm Li}_2\left (-\frac {x^{2} e}{d}\right )\right )} g e^{\left (-1\right )}}{f^{2}} - \frac {{\left (\log \left (g x^{2} + f\right ) \log \left (\frac {g x^{2} e + f e}{d g - f e} + 1\right ) + {\rm Li}_2\left (-\frac {g x^{2} e + f e}{d g - f e}\right )\right )} g e^{\left (-1\right )}}{f^{2}} - \frac {\log \left (x^{2} e + d\right )}{d f} + \frac {2 \, \log \left (x\right )}{d f}\right )} e + \frac {1}{2} \, {\left (\frac {g \log \left (g x^{2} + f\right )}{f^{2}} - \frac {g \log \left (x^{2}\right )}{f^{2}} - \frac {1}{f x^{2}}\right )} \log \left ({\left (x^{2} e + d\right )}^{p} c\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\ln \left (c\,{\left (e\,x^2+d\right )}^p\right )}{x^3\,\left (g\,x^2+f\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________